<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <button @click="toggle">点击切换</button>
        <h1 v-show="isshow">
            你好
        </h1>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript" >
    	let vm = new Vue({
            el:'#app',
            data:{
                isshow:true
            },
            methods:{
                toggle(){
                    this.isshow = !this.isshow;
                }
            }
        });
    </script>
</body>
</html>